package cn.com.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author liufl E-mail:Huberier@allpyra.com
 * @version 创建时间：2017年7月31日 下午6:40:10
 * 类说明
 */
@Entity
@Table(name="t_user")
public class User implements Serializable {
	private static final long serialVersionUID = -415054941179532692L;

	@Id  
    @GeneratedValue  
    private Long id;  
      
    @Column(nullable = false)
    private String username;

    @Column(nullable = false)
    private String password;  
  
    public User() {  
        super();  
    }  
  
    public User(Long id, String username, String password) {  
        super();  
        this.id = id;  
        this.username = username;  
        this.password = password;  
    }  
  
    public Long getId() {  
        return id;  
    }  
  
    public void setId(Long id) {  
        this.id = id;  
    }

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}  
  
}

